package com.teamall.web.family.db.dao.mapper;

import com.teamall.web.family.db.arg.FamilyIncomeArg;
import com.teamall.web.family.db.po.FamilyIncomePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IFamilyIncomeMapper {
    
    List<Integer> countByArg(FamilyIncomeArg arg);

    List<FamilyIncomePO> selectByArg(FamilyIncomeArg arg);

    FamilyIncomePO selectByPrimaryKey(Integer id);

    List<FamilyIncomePO> selectByArgAndPage(FamilyIncomeArg arg, RowBounds rowBound);

    int insert(FamilyIncomePO record);

    int insertSelective(FamilyIncomePO record);

    int insertBatch(@Param("list") List<FamilyIncomePO> records);

    int updateByArgSelective(@Param("record") FamilyIncomePO record,
            @Param("arg") FamilyIncomeArg arg);

    int updateByArg(@Param("record") FamilyIncomePO record,
            @Param("arg") FamilyIncomeArg arg);

    int updateByPrimaryKeySelective(FamilyIncomePO record);

    int updateByPrimaryKey(FamilyIncomePO record);
    
    int deleteByArg(FamilyIncomeArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}